package com.xxx.system.mapper;


import com.xxx.system.domain.Permission;
import com.xxx.system.query.PermissionQuery;

import java.util.List;

public interface PermissionMapper {

    //新增
    void addPermission(Permission permission);

    //修改
    void updatePermission(Permission permission);

    //删除
    void deleteById(Long id);

    //查询单个
    Permission findOne(Long id);

    //查询所有
    List<Permission> findAllPerm();

    List<Permission> queryPage(PermissionQuery permissionQuery);

    void deletePermissionByIds(Long[] ids);

    Permission selectBySn(String permissionSn);

    List<String> findPermByLogininfoId(Long id);
}